package enum03;

import org.junit.Test;

public class WeekDemo {
    @Test
    public void testMethod01(){
        // Week week = new Week()  也是不能创建对象的
        System.out.println(Week.MONDAY);   // MONDAY
        System.out.println(Week.FRIDAY); //  FRIDAY

        System.out.println(Week.FRIDAY.getClass()); // 获取星期五的字节码对象
        // class enum03.Week
        // 这就相当于 new FRIDAY  打印的字节码对象和new创建的字节码是一样的
    }
}
